﻿@{
    ViewBag.Title = "R-Tracker";
}
<div id="vertical">

    @* Division two contains the Grid part in it. *@
    <div class="col-md-12">

        <span id="gd-error-message-display"></span>
        <div class="info-upper-part">

            @* Main Grid *@
        </div>
    </div>

    <div>


        @*division to display error message*@
        <div id="div-dt-error-id" class="dt-div-error-msg-cls">

        </div>

        <div class="info-bottom-part">

            <div id="dt-error-message-display"></div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {

        $.ajax({
            type: 'GET',
            url: "/Login/GetSidebar",
            //data: '{ User: ' + temp + '}',
            async: false,
            //contentType: 'application/json; charset=utf-8',
            //dataType: 'json',
            success: function (mydata) {
                //alert(mydata);
                if (mydata) {
                    $("#page-side-tree-id").empty().append(mydata);
                }
            },
            error: function () {
                alert('error');
            },
            complete: function () {
                //call to refresh the grid,
                GdRefresh(strModuleName, nGbCurrentlySelectedRecord, nGBTabIndex, strGbSortOn, strGbSortType, nGbCurrentPage, 0, nGbOrgId, false);
            }
        });
        // Call GdRefresh to rebuild the Grid.
        //GdRefresh(strModuleName, nGbCurrentlySelectedRecord, nGBTabIndex, strGbSortOn, strGbSortType, nGbCurrentPage,0, nGbOrgId,false);
       
    });
</script>